package org.example.pack1023.reflect;
//反射-----获取类
public class DemoA {
    public static void main(String[] args) throws ClassNotFoundException {
        Class c1 = Class.forName("org.example.pack1023.reflect.Users");
        Class c2 = Users.class;
        Users users = new Users();
        Class c3 = users.getClass();

        Class c4 = Integer.TYPE;
        Class c5 = Integer.class;
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c4);
        System.out.println(c5);
    }
}
